/****************************************************************************
*                                                                           *
* Copyright (c) Ionescu M. Marius. All rights reserved(2010).               *
*                                                                           *
****************************************************************************/

using System;
using System.Collections;
using System.Data;
using System.Drawing;
using System.Web.Security;
using System.Web.UI.WebControls;
using NS_Controls;

public partial class Default : SessionPageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
			if (Request.QueryString["action"] != null && Request.QueryString["action"] == "search")
            {
                ASP.pages_hipocrate_controls_searchpage_ascx searchPage = (ASP.pages_hipocrate_controls_searchpage_ascx)Page.LoadControl("~/Pages/Hipocrate/Controls/SearchPage.ascx");
                searchPage.ID = "searchPage";
                phDefault.Controls.Add(searchPage);
            }
            else
            {
                ASP.pages_hipocrate_controls_mainpage_ascx mainPage = (ASP.pages_hipocrate_controls_mainpage_ascx)Page.LoadControl("~/Pages/Hipocrate/Controls/MainPage.ascx");
                mainPage.ID = "nomenclator";
                phDefault.Controls.Add(mainPage);
            }
        }
        catch (Exception ex)
        {
            this.SetMessage(ex.Message, true);
        }

    }
}
